package top.lingkang.finalgateway.admin.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import top.lingkang.finalgateway.admin.entity.SslEntity;
import top.lingkang.finalgateway.admin.param.SslListParam;
import top.lingkang.mm.annotation.MagicMapper;
import top.lingkang.mm.orm.BaseMapper;

import java.util.Date;
import java.util.List;

/**
 * @author lingkang
 * @create by 2024/5/6 14:35
 */
@MagicMapper
public interface SslMapper extends BaseMapper<SslEntity> {
    List<SslEntity> list(SslListParam param);

    @Update("update t_ssl set name=#{name}, update_time=#{updateTime} where name=#{oldName}")
    int updateName(@Param("name") String name, @Param("oldName") String oldName, @Param("updateTime") Date updateTime);
}
